package com.woniu.outlet.dao;

import com.woniu.outlet.po.OrderProduction;
import com.woniu.outlet.po.OrderProductionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface OrderProductionMapper {
    long countByExample(OrderProductionExample example);

    int deleteByExample(OrderProductionExample example);

    int deleteByPrimaryKey(Long id);

    int insert(OrderProduction record);

    int insertSelective(OrderProduction record);

    List<OrderProduction> selectByExample(OrderProductionExample example);

    OrderProduction selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") OrderProduction record, @Param("example") OrderProductionExample example);

    int updateByExample(@Param("record") OrderProduction record, @Param("example") OrderProductionExample example);

    int updateByPrimaryKeySelective(OrderProduction record);

    int updateByPrimaryKey(OrderProduction record);

    @Select("select id,order_no orderNo,project_id projectId,num from ERP_order_production  where order_no =#{orderNo}")
    List<OrderProduction> selectOrderProductionByOrderNo(String orderNo);
}